from pmcore.basecom import BaseComponent
from direct.showbase.DirectObject import DirectObject

class mousePicker(BaseComponent,DirectObject):
    name = "test"
    weight = 10
    
    def after_direct_import(self):
        add_listener('test-listener','np-selector-select',self.doSomething)
        self.accept('np-selector-select',self.doSomething)
    def doSomething(self,args):
        print "SEL:",args
        
class mousePicker2(BaseComponent,DirectObject):
    name = "test2"
    def after_direct_import(self):
        add_listener('test-listener2','np-selector-select',self.doSomething)
        self.accept('np-selector-select',self.doSomething)
    def doSomething(self,args):
        print "SEL2:",args
